package com.lxx.securitydemo2.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lxx.securitydemo2.domain.entity.Menu;
import com.lxx.securitydemo2.mapper.MenuMapper;
import com.lxx.securitydemo2.service.MenuService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 菜单权限表(Menu)表服务实现类
 *
 * @author makejava
 * @since 2024-07-09 18:00:47
 */
@Service("menuService")
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Override
    public List<String> selectPermissionsByUserId(Long id) {
        List<String> permissions = getBaseMapper().selectPermissionsByUserId(id);
        return permissions;
    }
}

